<div class="titlebar">
    <a href="javascript:;" url="{:url('store.chain/edit',['store_id' => $store_id])}" class="button button-blue selectID"> <i class="iconfont icon-add_icon"></i>增加门店</a>
</div>
<table class="table table-border">
<thead>
    <tr>
        <th class="w60 fn-tac">类型</th>
        <th class="w80 fn-tac">操作</th>
        <th>门店名称</th>
        <th class="w160">电话</th>
        <th class="w160 fn-tac">操作</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td class="fn-tac"><span class="badge bg-red">主店</span></td>
        <td class="fn-tac"><input class="fn-tac w40 input input-mini readonly" type="text" readonly value="0"/> </td>
        <td class="win fn-cp" url="{:url('store.index/review',['id'=>$info.id])}" >
            <i class="iconfont icon-home_icon"></i><span  class="fn-fb red">{$info.name}</span><br />
            <i class="iconfont icon-address_icon"></i><span class="gray">{$info.address}</span>
        </td>
        <td>{$info.telphone}</td>
        <td class="button-group">
            <sapn class="button button-disabled"><i class="iconfont icon-edit"></i>编辑</sapn>
            <sapn class="button button-disabled"><i class="iconfont icon-lajixiang"></i>删除</sapn>
        </td>
    </tr>
    {foreach $lists as $vo}
    <tr>
        <td class="fn-tac"><span class="badge bg-green">分店</span></td>
        <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
        <td>
            <i class="iconfont icon-home_icon"></i><span class="fn-fb">{$vo.title}</span><br />
            <i class="iconfont icon-address_icon"></i><span class="gray">{$vo.address}</span>
        </td>
        <td>{$vo.telphone}</td>
        <td class="button-group">
            <a class="button selectID" href="javascript:;" url="{:url('store.chain/edit',['store_id' => $store_id,'id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
            <a class="button isDel" url="{:url('store.chain/delete',['id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
        </td>
    </tr>
    {/foreach}
</tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','form','layer','tip','date', function () {
    sort("{:url('store.chain/sort')}");
    $('.isDel').isDel();
    $('.win').win()
    $(".selectID").win({reload:1,area:['800px','350px']});
})
</script>
